/**
 * 
 */
package edu.wpi.cs509.messages.client;

import edu.wpi.cs509.representation.ClientGame;

/**
 * This class implements the server->client opponent-ready message.
 * @author sparadis
 *
 */
public class MsgOpponentReady extends MsgClientContext {

	/**
	 * The serialization version ID.
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * The updated client game. 
	 */
	private ClientGame cgame;
	
	/**
	 * Constructor.
	 * @param game - the updated client game 
	 */
	public MsgOpponentReady(ClientGame cgame) {
		this.cgame = cgame;
	}
	
	/**
	 * Call the client's opponent ready function. 
	 */
	public void rxExecute() {
		getCl().receiveOpponentReady(cgame);
	}
	
}
